Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Scripting Additions Guide /
Chapter 2 - Scripting Addition Commands / Command Definitions
/


List Disks

The List Disks command returns a list containing the names of every mounted volume, including CD-ROMs, floppy disks, AppleShare volumes, and so on. List Disks is one of several commands provided by the File Commands scripting addition.

SYNTAX
list disks
RESULT
The result is a list of strings.

EXAMPLE
list disks
--result: {"My Disk", "Our Server", "Joe's Floppy"}
ERROR
Error
number
Error message
-35Disk <name> wasn't found.
-50Parameter error.
-108Out of memory.
-1703Some data was the wrong type.
-1704Some parameter was invalid.
-1705Operation involving a list item failed.
-1719Can't get <reference>. Invalid index.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
18 DEC 1996